You can easily change the height and width on the C1LinearGauge by setting the Height and Width properties. By default the height of the control is set to 80px and the width of the control is set to 600px. You can easily change the control's height and width in Source view, from the Properties window, or in code.
In Source View
In Source view add Height="100px" and Width="500px" in the <cc1:C1LinearGauge> tag to the size you wish to set the control's height and width to, for example:
To write code in Source View
<cc1:C1LinearGauge ID="C1LinearGauge1" runat="server" Height="100px" Width="500px">
The above will resize the control to 100 pixels tall and 500 pixels wide.
From the Properties Window
You can change the Height and Width properties to set the control's height and width in the Properties window:
In Code
Add the following code to the Page_Load event to set the Height and Width properties 100 pixels tall and 500 pixels wide:
To write the code in Visual Basic:
Visual Basic |
Copy Code
|
---|---|
Me.C1LinearGauge1.Height = 100 Me.C1LinearGauge1.Width = 500 |
To write the code in C#:
C# |
Copy Code
|
---|---|
this.C1LinearGauge1.Height = 100; this.C1LinearGauge1.Width = 500; |